<!doctype html>
<html>
<head>
    <meta charset=utf-8>
    <title></title>
    <meta name="robots" content="noindex,nofollow">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="<?=Web_Path?>packs/layui/css/layui.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/font.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/style.css">
    <script src="<?=Web_Path?>packs/js/jquery.min.js"></script>
    <script src="<?=Web_Path?>packs/layui/layui.js"></script>
    <script src="<?=Web_Path?>packs/admin/js/cscms.js"></script>
</head>
<body>
    <span class="layui-breadcrumb" >
        <a ><cite><i class="fa fa-map-marker"></i><?=L('tpl_01')?></cite></a>
        <a href="javascript:;"><?=L('tpl_02')?></a>
        <a href="<?=site_url('collect')?>"><?=L('tpl_03')?></a>
    </span>
    <form class="layui-form" action="<?=site_url('collect/del')?>" method="post">
        <table class="layui-table" style="width: 99.7%">
            <colgroup>
                <col width="40">
                <col>
            </colgroup>
            <thead>
                <tr>
                    <th><?=L('tpl_04')?></th>
                    <th class="phide"><?=L('tpl_05')?></th>
                    <th ><?=L('tpl_06')?></th>
                    <th><?=L('tpl_07')?></th>
                    <th><?=L('tpl_08')?></th>
                    <th><?=L('tpl_09')?></th>
                </tr>
            </thead>
            <tbody>
            <?php
                if(empty($collect)) echo '<tr><td align="center" height="50" colspan="6">'.L('tpl_10').'</td></tr>';
                foreach ($collect as $row) {
                    $cjtime=($row->addtime==0)?L('tpl_11'):date('Y-m-d H:i:s',$row->addtime);
                    echo '
                    <tr id="row_'.$row->id.'">
                    <td><input name="id['.$row->id.']" class="xuan" type="checkbox" value="'.$row->id.'" /></td>
                    <td class="phide">'.$row->id.'</td>
                    <td>'.$row->name.'</td>
                    <td>'.$row->dir.'</td>
                    <td>'.$cjtime.'</td>
                    <td class="basedb-more">
                        <a class="layui-btn layui-btn-mini" href="'.site_url('collect/add').'?id='.$row->id.'">'.L('tpl_12').'</a>
                        <a class="layui-btn layui-btn-mini layui-btn-danger phide" href="javascript:cscms.del_one(\''.site_url('collect/del').'\','.$row->id.');" >'.L('tpl_13').'</a>
                        <a class="layui-btn layui-btn-mini layui-btn-normal phide" href="'.site_url('collect/daochu').'?id='.$row->id.'">'.L('tpl_14').'</a>
                        <a class="layui-btn layui-btn-mini layui-btn-warm phide" href="javascript:cscms.caiji(\''.site_url('collect/caiji1').'?id='.$row->id.'&ac=ceshi\',\''.site_url('collect/caiji1/1').'?id='.$row->id.'&ac=ceshi\');">'.L('tpl_15').'</a>
                        <a class="layui-btn layui-btn-mini layui-btn-danger" href="javascript:cscms.caiji(\''.site_url('collect/caiji1').'?id='.$row->id.'\',\''.site_url('collect/caiji1/1').'?id='.$row->id.'\');">'.L('tpl_16').'</a>
                    </td>
                    </tr> ';
                }
            ?>
            </tbody>
        </table>
        <div class="more_func">
            <a class="layui-btn layui-btn-primary layui-btn-small" href="javascript:cscms.select_all();"><i class="fa fa-check colorl" ></i><?=L('tpl_17')?></a>
            <a class="layui-btn layui-btn-primary layui-btn-small" lay-submit lay-filter="del_pl"><i class="fa fa-close " style="color: red" ></i><?=L('tpl_18')?></a>
            <a class="layui-btn layui-btn-primary layui-btn-small" href="<?=site_url('collect/add')?>"><i class="fa fa-plus colorn"></i><?=L('tpl_19')?></a>
            <a class="layui-btn layui-btn-primary layui-btn-small phide" href="javascript:cscms.get_open('<?=site_url('collect/daoru')?>','<?=L('tpl_20')?>','500px','400px');"><i class="fa fa-level-down colord"></i><?=L('tpl_20')?></a>
        </div>
    </form>
    <div id="page">
        <div class="data_nums phide"><?=$page_data?></div>
        <div class="data_page"><?=$page_list?></div>
    </div>
<script>
cscms.init();
</script>
</body>
</html>